package com.youkeyi.ddy.cloud.common.api.application.system.auth;

import com.youkeyi.ddy.cloud.common.api.application.system.auth.dto.SystemAuthListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.auth.param.SystemAuthCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.auth.param.SystemAuthDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.auth.param.SystemAuthListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.auth.param.SystemAuthUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * SystemAuthCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/system/auth/fallback")
public class SystemAuthCloudServiceFallback implements SystemAuthCloudService {

    @Override
    public SystemAuthListCloudDto list(SystemAuthListCloudParam param) {
        return new SystemAuthListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(SystemAuthCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(SystemAuthUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(SystemAuthDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
